#ifndef KXLUA_SOCKETCLASS_H_
#define KXLUA_SOCKETCLASS_H_

#include "net/net.h"

#include "iclass.h"

#include <luabind/luabind.hpp>

namespace kxlua {

class NetLib;

class Socket : public IClass {
public:
    Socket(NetLib* lib);
    virtual ~Socket();

public:
    const std::string& GetName() const;

    virtual bool Open();
    virtual bool Close();

private:
    bool isOpen_;
    std::string name_;

    NetLib* lib_;
};

}

#endif
